<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<script  src="${pageContext.request.contextPath}/script/pageCommon.js" charset="utf-8"></script>
<script language="javascript" src="${pageContext.request.contextPath}/script/PageUtils.js" charset="utf-8"></script>
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/style/blue/pageCommon.css" />
<script type="text/javascript" src="${pageContext.request.contextPath}/script/rili/jquery.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/script/rili/jquery.datetimepicker.css" />
<script src="${pageContext.request.contextPath}/script/rili/jquery.datetimepicker.js" charset="utf-8"></script>
<title>单据信息</title>
</head>
<body>
	<s:form action="order_list">
		<input type="hidden" name="dealType" value="${dealType}" />
		<input type="hidden" name="date" value="${date}" />
	</s:form>
	<div id="Title_bar">
		<div id="Title_bar_Head">
			<div id="Title_Head"></div>
			<div id="Title">
				<!--页面标题-->
				<img border="0" width="13" height="13"
					src="${pageContext.request.contextPath}/style/images/title_arrow.gif" />
				单据信息
			</div>
			<div id="Title_End"></div>
		</div>
	</div>
	<!--查询处理-->
	<div id="QueryArea">
		<div style="height: 50px">
			<%--处理分类查询和模糊查询表单--%>
			<s:form action="order_list">
				<table>
					<tr>
						<td>单据类型</td>
						<td><select name="dealType" class="SelectStyle">
								<option value="0">所有类型</option>
								<s:iterator value="#request.dealTypelist" var="a">
									<option value="<s:property value="#a"/>">
										<s:if test="#a==1">
					上架
					</s:if>
										<s:if test="#a==2">
					下架
					</s:if>
										<s:if test="#a==3">
					进货
					</s:if>
										<s:if test="#a==4">
					退货
					</s:if>
									</option>
								</s:iterator>
						</select></td>
						<td>从：</td>
						<td><input type="text" id="kdate" name="kdate" value="" />
						</td>
						<td>到：</td>
						<td><input type="text" id="jdate" name="jdate" value="" /><%--
						--%></td>
						<td><input type="IMAGE"
							src="${pageContext.request.contextPath}/style/blue/images/button/query.PNG" />
						</td>
					</tr>
				</table>
			</s:form>
		</div>
	</div>
	<!--     单据列表          -->
	<div id="MainArea">
		<table cellspacing="0" cellpadding="0" class="TableStyle">
			<!-- 表头-->
			<thead>
				<tr align=center valign=middle id=TableTitle>
					<td>单据号</td>
					<td>单据对象</td>
					<td>单据时间</td>
					<td>单据类型</td>
					<td>详情</td>
				</tr>
			</thead>
			<!--显示数据列表-->
			<tbody id="TableData" class="dataContainer" datakey="userList">
				<s:iterator value="recordList">
					<tr align="center" valign="middle" class="TableDetail1 template">
						<td>${id}</td>
						<td><s:if test="market != null">
						${market.name}
						</s:if> ${supplier.name}</td>
						<td>${date}</td>
						<td>
					<s:if test="dealType==1">
							上架
					</s:if> 
					<s:if test="dealType==2">
							下架
					</s:if>
					 <s:if test="dealType==3">
							进货
					</s:if> 
					<s:if test="dealType==4">
							退货
					</s:if>
					</td>
						<td><s:a action="order_itemlist?id=%{id}">单据详情</s:a></td>
					</tr>
				</s:iterator>
			</tbody>
		</table>
	</div>

	<!-- 分页信息 -->
	<%@ include file="/WEB-INF/jsp/public/pageView.jspf"%>
</body>
<script>
$('#kdate').datetimepicker();
//$('#kdate').datetimepicker({value:'2015/04/15 05:03',step:10});
$('#jdate').datetimepicker();
//$('#jdate').datetimepicker({value:'2015/06/15 05:03',step:10});
</script>
</html>
